@echo off

set "CURRENT_DIR=%~dp0"
cd "%CURRENT_DIR%"
set "AGENT_HOME=%cd%"
cd "%CURRENT_DIR%"
@echo %CURRENT_DIR%
@echo %AGENT_HOME%

set classespath="%AGENT_HOME%/jre7/lib;%AGENT_HOME%/lib"

wakeagent //IS//wakeagent --DisplayName="wakeagent"  --Install="%AGENT_HOME%\wakeagent.exe" --Startup=auto --JavaHome="%AGENT_HOME%\jre7" --Jvm="%AGENT_HOME%\jre7\bin\client\jvm.dll" --LibraryPath="%AGENT_HOME%\jre7\bin;%AGENT_HOME%\bin;" --Classpath="%AGENT_HOME%\jre7\lib;%AGENT_HOME%\lib;%AGENT_HOME%\wakeagent.jar;" --StartMode=jvm  --StopMode=jvm  --StartClass=com.coffee.wakeagent.WakeAgent  --StartMethod start --StopClass=com.coffee.wakeagent.WakeAgent --StopMethod  stop --LogPath="%AGENT_HOME%\logs" --PidFile="%CURRENT_DIR%" 

wakeagent //ES//wakeagent